package cn.com.chengmandian.erp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * ERP系统-OA审批实例
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("erp_oa_instance")
@ApiModel(value = "ErpOaInstance对象", description = "ERP系统-OA审批实例")
public class ErpOaInstance implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("业务类型1-合同审批 2-订单审批 3-合同借阅")
    private Integer businessType;

    @ApiModelProperty("业务ID")
    private Integer businessId;

    @ApiModelProperty("审批标题")
    private String title;

    @ApiModelProperty("审批方式 1-已配置钉钉审批流 2-发起人自行选择")
    private Integer approveType;

    @ApiModelProperty("钉钉审批流唯一码")
    private String ddProcessCode;

    @ApiModelProperty("钉钉返回实例ID")
    private String ddInstanceId;

    @ApiModelProperty("钉钉表单数据")
    private String ddFormValues;

    @ApiModelProperty("0-发起失败 1-审批中 2-审批通过 3-审批未通过")
    private Integer status;

    @ApiModelProperty("状态说明")
    private String message;

    @ApiModelProperty("发起时间")
    private Date startTime;

    @ApiModelProperty("结束时间")
    private Date finishTime;

    @ApiModelProperty("发起人ID")
    private Integer createUser;

    @ApiModelProperty("发起人姓名")
    private String createName;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

}
